﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SpaceSquirrel
{
	public class VolcanoCompleteScene : GameSceneBase
	{
		private PlayScene bg;
		private Context context;
		private int counter;
		private Sprite player;

		public VolcanoCompleteScene(PlayScene scene, Context context)
			: base()
		{
			this.bg = scene;
			this.context = context;
			this.counter = 0;
			this.player = scene.Player;
		}

		public override void ProcessInput(List<MyEvent> events, Dictionary<string, bool> pressedActions)
		{
			
		}

		public override void Update()
		{
			this.counter++;
			if (this.counter == 20)
			{
				this.Next = new DialogScene(this, "Volcano", false, false, false);
			}

			if (this.counter == 30)
			{
				this.Next = new PlayScene("ship_1", 8, 9, this.context);
			}
		}

		public override void Render(TuxedoLib.Image screen, int renderCounter)
		{
			this.bg.Render(screen, renderCounter);
		}
	}
}
